import axiosMine from "@/utils/axiosMine.js";

const routeCofig = 'user-api';

export const signinNewUser = (registerInfo) => {
  return axiosMine.post(`${routeCofig}/register`, registerInfo);
};

export const loginByEmail = (loginInfo) => {
  return axiosMine.post(`${routeCofig}/login`, loginInfo)
}

export const loginByPhone = () => {
  return axiosShop.post('/passport/login', {
      form: {
          "smsCode": "246810",
          "mobile": "18917286702",
          "isParty": false,
          "partyData": {}
      }
  })
}
